<?php
$this->breadcrumbs = array(
    'Manage term' => array('/term/list'),
    'Manage ' . $vocabulary->name
);
?>
<h3 class="heading">Manage term</h3>

<a href="<?php echo Yii::app()->createUrl('/term/create', array('vocabulary_id' => $vocabulary->id)) ?>"><i class="icon-pencil"></i> Create new term for <?php echo h($vocabulary->name) ?></a>

<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'dataProvider' => $dataProvider,
    'filter' => $model,
    'type' => 'striped bordered condensed',
    'template' => "{items}\n{pager}",
    'columns' => array(
        array(
            'name' => 'term_name',
            'type' => 'raw',
            'value' => '$data->getNameWithSeparator()'
        ),
        array(
            'name' => 'term_description'
        ),
        array(
            'name' => 'create_time',
            'type' => 'datetime',
            'filter' => false,
        ),
        array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
            'template' => '{update}{delete}'
        ),
    )
));
?>